package com.sample.Intent;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class OtherActivity extends Activity implements OnClickListener{
		Button button2; 
		Intent intent;
	   public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.other);
	        button2=(Button)findViewById(R.id.button2);
	        button2.setOnClickListener(this);
	        
	        }
	public void onClick(View v) {
		intent= new Intent(this, IntentActivity.class);
		this.startActivity(intent);
		
	}
}
